$(function(){

   $("body").on('tap','a',function(){
       mui.openWindow({
            url: $(this).attr('href')
       });
   }); 

});

function getParamsByUrl(url,name){
    //substr(start,length) /一个参数代表从某处开始后面的都会截取到
    var params = url.substr(url.indexOf('?')+1); 
    // var params = url.substr(url.indexOf('?')+1);
    
    var param = params.split('&');
    for(var i=0;i<param.length;i++){
        var current = param[i].split('=');
        if(current[0] == name){
            return current[1];
        }
    }
    return null;
}